﻿using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

// Token: 0x0200025B RID: 603
public class MessageDialog : MonoBehaviour
{
	// Token: 0x06000D30 RID: 3376 RVA: 0x00069228 File Offset: 0x00067428
	private void Awake()
	{
		this.okButton.onClick.AddListener(new UnityAction(this.OnOk));
	}

	// Token: 0x06000D31 RID: 3377 RVA: 0x00069246 File Offset: 0x00067446
	public void Open(string message)
	{
		this.messageText.text = message;
		base.gameObject.SetActive(true);
	}

	// Token: 0x06000D32 RID: 3378 RVA: 0x00069260 File Offset: 0x00067460
	private void OnOk()
	{
		base.gameObject.SetActive(false);
	}

	// Token: 0x04001236 RID: 4662
	[SerializeField]
	private Button okButton;

	// Token: 0x04001237 RID: 4663
	[SerializeField]
	private Text messageText;
}
